package GUI;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import BolaEnergetica.BolaEnergetica;
import General.Juego;

public class OyenteBola implements MouseListener {

	protected GUIGame GUI;
	
	public OyenteBola(GUIGame g)
	{
		GUI = g;
	}
	
	public void mouseClicked(MouseEvent arg0) {
		ElementoGrafico aux = (ElementoGrafico) arg0.getComponent();
		BolaEnergetica bola = (BolaEnergetica) aux.getElemento(); 
		GUI.devolverBola(bola);
	}

	public void mouseEntered(MouseEvent arg0) {}


	public void mouseExited(MouseEvent arg0) {}


	public void mousePressed(MouseEvent arg0) {}


	public void mouseReleased(MouseEvent arg0) {}

}
